home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.2 Development Libraries / SGI IRIX 6.2 Development Libraries.iso / dist / gl_dev.idb / usr / include / GL / gls.h.z / gls.h
Encoding:
C/C++ Source or Header  |  1996-03-15  |  34.5 KB  |  742 lines

  1. #if !defined(__gls_h_)
  2. #define __gls_h_
  3.  
  4. /*
  5. ** Copyright 1995-2095, Silicon Graphics, Inc.
  6. ** All Rights Reserved.
  7. ** 
  8. ** This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  9. ** the contents of this file may not be disclosed to third parties, copied or
  10. ** duplicated in any form, in whole or in part, without the prior written
  11. ** permission of Silicon Graphics, Inc.
  12. ** 
  13. ** RESTRICTED RIGHTS LEGEND:
  14. ** Use, duplication or disclosure by the Government is subject to restrictions
  15. ** as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  16. ** and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  17. ** successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  18. ** rights reserved under the Copyright Laws of the United States.
  19. */
  20.  
  21. #define GLS_LINKAGE
  22.  
  23. #include <GL/gl.h>
  24. #include <stddef.h>
  25. #include <stdio.h>
  26.  
  27. #if defined(__cplusplus)
  28.     extern "C" {
  29. #endif /* defined(__cplusplus) */
  30.  
  31. typedef void GLSchar;
  32. typedef GLint GLSenum;
  33. typedef long long GLSlong;
  34. typedef GLint GLSopcode;
  35.  
  36. typedef void (*GLScaptureEntryFunc)(
  37.     GLSopcode inOpcode, const GLvoid *optinParam1
  38. );
  39. typedef void (*GLScaptureExitFunc)(
  40.     GLSopcode inOpcode, const GLvoid *optinParam1, GLvoid *optinoutReturn
  41. );
  42.  
  43. typedef size_t (*GLSreadFunc)(size_t inCount, GLvoid *outBuf);
  44. typedef size_t (*GLSwriteFunc)(size_t inCount, const GLvoid *inBuf);
  45.  
  46. #if defined(__cplusplus)
  47.     typedef void (*GLSfunc)(...);
  48. #else /* !defined(__cplusplus) */
  49.     typedef void (*GLSfunc)();
  50. #endif /* defined(__cplusplus) */
  51.  
  52. #if !defined(GL_VERSION_1_1)
  53.     #define GL_V2F                                0x2A20
  54.     #define GL_V3F                                0x2A21
  55.     #define GL_C4UB_V2F                           0x2A22
  56.     #define GL_C4UB_V3F                           0x2A23
  57.     #define GL_C3F_V3F                            0x2A24
  58.     #define GL_N3F_V3F                            0x2A25
  59.     #define GL_C4F_N3F_V3F                        0x2A26
  60.     #define GL_T2F_V3F                            0x2A27
  61.     #define GL_T4F_V4F                            0x2A28
  62.     #define GL_T2F_C4UB_V3F                       0x2A29
  63.     #define GL_T2F_C3F_V3F                        0x2A2A
  64.     #define GL_T2F_N3F_V3F                        0x2A2B
  65.     #define GL_T2F_C4F_N3F_V3F                    0x2A2C
  66.     #define GL_T4F_C4F_N3F_V4F                    0x2A2D
  67. #endif /* !defined(GL_VERSION_1_1) */
  68.  
  69. /*************************************************************/
  70.  
  71. /* CaptureFlags */
  72. /*      GLS_NONE */
  73. #define GLS_CAPTURE_EXECUTE_BIT                   0x00000001
  74. #define GLS_CAPTURE_WRITE_BIT                     0x00000002
  75.  
  76. /* ImageFlags */
  77. /*      GLS_NONE */
  78. #define GLS_IMAGE_NULL_BIT                        0x00000001
  79.  
  80. /* WriteFlags */
  81. /*      GLS_NONE */
  82. #define GLS_WRITE_APPEND_BIT                      0x00000001
  83.  
  84. /* Fundamental */
  85. #define GLS_NONE                                  0x0000
  86.  
  87. /* AbortMode */
  88. /*      GLS_NONE */
  89. #define GLS_ALL                                   0x0010
  90. #define GLS_LAST                                  0x0011
  91.  
  92. /* API */
  93. #define GLS_API_GLS                               0x0020
  94. #define GLS_API_GL                                0x0021
  95.  
  96. /* BlockType */
  97. #define GLS_FRAME                                 0x0030
  98. #define GLS_HEADER                                0x0031
  99. #define GLS_INIT                                  0x0032
  100. #define GLS_STATIC                                0x0033
  101.  
  102. /* Boolean */
  103. #define GLS_CAPTURE_VERTEX_ARRAYS                 0x0040
  104.  
  105. /* CaptureStreamType */
  106. #define GLS_CONTEXT                               0x0050
  107. #define GLS_BINARY_LSB_FIRST                      0x0051
  108. #define GLS_BINARY_MSB_FIRST                      0x0052
  109. #define GLS_TEXT                                  0x0053
  110.  
  111. /* ChannelTarget */
  112. #define GLS_DEFAULT_READ_CHANNEL                  0x0060
  113. #define GLS_DEFAULT_WRITE_CHANNEL                 0x0061
  114.  
  115. /* CopyStreamType */
  116. /*      GLS_NONE */
  117. /*      GLS_CONTEXT */
  118. /*      GLS_BINARY_LSB_FIRST */
  119. /*      GLS_BINARY_MSB_FIRST */
  120. /*      GLS_TEXT */
  121.  
  122. /* ErrorCode */
  123. /*      GLS_NONE */
  124. #define GLS_DECODE_ERROR                          0x0070
  125. #define GLS_IO_ERROR                              0x0071
  126. #define GLS_PARAMETER_ERROR                       0x0072
  127. #define GLS_RESOURCE_ERROR                        0x0073
  128. #define GLS_STATE_ERROR                           0x0074
  129. #define GLS_UNSUPPORTED_COMMAND                   0x0075
  130. #define GLS_UNSUPPORTED_EXTENSION                 0x0076
  131. #define GLS_UNSUPPORTED_VERSION                   0x0077
  132.  
  133. /* ExternStreamType */
  134. /*      GLS_BINARY_LSB_FIRST */
  135. /*      GLS_BINARY_MSB_FIRST */
  136. /*      GLS_TEXT */
  137.  
  138. /* GetCommandi */
  139. #define GLS_API                                   0x0080
  140. #define GLS_IS_CLIENT_GET_COMMAND                 0x0081
  141. #define GLS_IS_CLIENT_STATE_COMMAND               0x0082
  142. #define GLS_IS_GET_COMMAND                        0x0083
  143.  
  144. /* GetFunc */
  145. #define GLS_CAPTURE_ENTRY_FUNC                    0x0090
  146. #define GLS_CAPTURE_EXIT_FUNC                     0x0091
  147. #define GLS_READ_FUNC                             0x0092
  148. #define GLS_WRITE_FUNC                            0x0093
  149.  
  150. /* GetListc */
  151. #define GLS_CONTEXT_STREAM_LIST                   0x00A0
  152. #define GLS_READ_PREFIX_LIST                      0x00A1
  153.  
  154. /* GetListi */
  155. #define GLS_OUT_ARG_SIZE_LIST                     0x00B0
  156.  
  157. /* GetListl */
  158. #define GLS_OUT_ARG_POINTER_LIST                  0x00C0
  159.  
  160. /* GetPointer */
  161. /*      GLS_DEFAULT_READ_CHANNEL */
  162. /*      GLS_DEFAULT_WRITE_CHANNEL */
  163. #define GLS_DATA_POINTER                          0x00D0
  164.  
  165. /* GetStreamType */
  166. /*      GLS_NONE */
  167. /*      GLS_CONTEXT */
  168. /*      GLS_BINARY_LSB_FIRST */
  169. /*      GLS_BINARY_MSB_FIRST */
  170. /*      GLS_TEXT */
  171. #define GLS_UNKNOWN                               0x00E0
  172.  
  173. /* GetStreamc */
  174. #define GLS_READ_NAME                             0x00F0
  175. #define GLS_WRITE_NAME                            0x00F1
  176.  
  177. /* GetStreami */
  178. #define GLS_CRC32                                 0x0100
  179. #define GLS_STREAM_TYPE                           0x0101
  180.  
  181. /* Getc */
  182. #define GLS_EXTENSIONS                            0x0110
  183. #define GLS_RELEASE                               0x0111
  184. #define GLS_VENDOR                                0x0112
  185. #define GLS_WRITE_PREFIX                          0x0113
  186.  
  187. /* Geti */
  188. #define GLS_ABORT_MODE                            0x0120
  189. #define GLS_BLOCK_TYPE                            0x0121
  190. #define GLS_CALL_NESTING                          0x0122
  191. #define GLS_CAPTURE_NESTING                       0x0123
  192. #define GLS_CONTEXT_STREAM_COUNT                  0x0124
  193. #define GLS_MAX_CALL_NESTING                      0x0125
  194. #define GLS_MAX_CAPTURE_NESTING                   0x0126
  195. #define GLS_OUT_ARG_COUNT                         0x0127
  196. #define GLS_READ_PREFIX_COUNT                     0x0128
  197. #define GLS_STREAM_VERSION_MAJOR                  0x0129
  198. #define GLS_STREAM_VERSION_MINOR                  0x012A
  199. #define GLS_STRING_TYPE                           0x012B
  200. #define GLS_VERSION_MAJOR                         0x012C
  201. #define GLS_VERSION_MINOR                         0x012D
  202.  
  203. /* Getiv */
  204. #define GLS_CURRENT_TIME                          0x0140
  205.  
  206. /* Headerc */
  207. #define GLS_AUTHOR                                0x0150
  208. #define GLS_TITLE                                 0x0151
  209. #define GLS_VERSION                               0x0152
  210.  
  211. /* Headerf */
  212. #define GLS_ASPECT                                0x0160
  213. #define GLS_CONTRAST                              0x0161
  214.  
  215. /* Headerfv */
  216. #define GLS_GAMMA                                 0x0170
  217. #define GLS_RED_POINT                             0x0171
  218. #define GLS_GREEN_POINT                           0x0172
  219. #define GLS_BLUE_POINT                            0x0173
  220. #define GLS_WHITE_POINT                           0x0174
  221.  
  222. /* Headeri */
  223. #define GLS_ACCUM_RED_BITS                        0x0180
  224. #define GLS_ACCUM_GREEN_BITS                      0x0181
  225. #define GLS_ACCUM_BLUE_BITS                       0x0182
  226. #define GLS_ACCUM_ALPHA_BITS                      0x0183
  227. #define GLS_AUX_BUFFERS                           0x0184
  228. #define GLS_COLOR_RED_BITS                        0x0185
  229. #define GLS_COLOR_GREEN_BITS                      0x0186
  230. #define GLS_COLOR_BLUE_BITS                       0x0187
  231. #define GLS_COLOR_ALPHA_BITS                      0x0188
  232. #define GLS_DEPTH_BITS                            0x0189
  233. #define GLS_DOUBLEBUFFER                          0x018A
  234. #define GLS_HEIGHT                                0x018B
  235. #define GLS_STENCIL_BITS                          0x018C
  236. #define GLS_STEREO                                0x018D
  237. #define GLS_TILEABLE                              0x018E
  238. /*      GLS_SAMPLES_SGIS */
  239.  
  240. /* Headeriv */
  241. #define GLS_CREATE_TIME                           0x01A0
  242.  
  243. /* StringType */
  244. #define GLS_UCS1                                  0x01B0
  245. #define GLS_UCS2                                  0x01B1
  246. #define GLS_UCS4                                  0x01B2
  247.  
  248. /* GL_SGIS_multisample */
  249. #define GLS_SAMPLES_SGIS                          0x0200
  250.  
  251. /* GLS opcodes */
  252. #define GLS_OP_glsBeginGLS                        16
  253. #define GLS_OP_glsBlock                           17
  254. #define GLS_OP_glsCallStream                      18
  255. #define GLS_OP_glsDrawVertexArray                 19
  256. #define GLS_OP_glsEndGLS                          20
  257. #define GLS_OP_glsError                           21
  258. #define GLS_OP_glsHeaderc                         22
  259. #define GLS_OP_glsHeaderf                         23
  260. #define GLS_OP_glsHeaderfv                        24
  261. #define GLS_OP_glsHeaderi                         25
  262. #define GLS_OP_glsHeaderiv                        26
  263. #define GLS_OP_glsRequireExtension                27
  264. #define GLS_OP_glsRequireVersion                  28
  265. #define GLS_OP_glsUnsupportedCommand              29
  266. #define GLS_OP_glsBeginObj                        30
  267. #define GLS_OP_glsComment                         31
  268. #define GLS_OP_glsEndObj                          32
  269. #define GLS_OP_glsNumbv                           33
  270. #define GLS_OP_glsNumd                            34
  271. #define GLS_OP_glsNumdv                           35
  272. #define GLS_OP_glsNumf                            36
  273. #define GLS_OP_glsNumfv                           37
  274. #define GLS_OP_glsNumi                            38
  275. #define GLS_OP_glsNumiv                           39
  276. #define GLS_OP_glsNuml                            40
  277. #define GLS_OP_glsNumlv                           41
  278. #define GLS_OP_glsNumsv                           42
  279. #define GLS_OP_glsPad                             43
  280. #define GLS_OP_glsString                          44
  281. #define GLS_OP_glsSwapBuffers                     45
  282.  
  283. /* GL opcodes */
  284. #define GLS_OP_glAccum                            191
  285. #define GLS_OP_glAlphaFunc                        214
  286. #define GLS_OP_glAreTexturesResident              300
  287. #define GLS_OP_glAreTexturesResidentEXT           65502
  288. #define GLS_OP_glArrayElement                     280
  289. #define GLS_OP_glArrayElementEXT                  65493
  290. #define GLS_OP_glBegin                            55
  291. #define GLS_OP_glBindTexture                      301
  292. #define GLS_OP_glBindTextureEXT                   65503
  293. #define GLS_OP_glBitmap                           56
  294. #define GLS_OP_glBlendColorEXT                    65520
  295. #define GLS_OP_glBlendEquationEXT                 65521
  296. #define GLS_OP_glBlendFunc                        215
  297. #define GLS_OP_glCallList                         50
  298. #define GLS_OP_glCallLists                        51
  299. #define GLS_OP_glClear                            181
  300. #define GLS_OP_glClearAccum                       182
  301. #define GLS_OP_glClearColor                       184
  302. #define GLS_OP_glClearDepth                       186
  303. #define GLS_OP_glClearIndex                       183
  304. #define GLS_OP_glClearStencil                     185
  305. #define GLS_OP_glClipPlane                        128
  306. #define GLS_OP_glColor3bv                         57
  307. #define GLS_OP_glColor3dv                         58
  308. #define GLS_OP_glColor3fv                         59
  309. #define GLS_OP_glColor3iv                         60
  310. #define GLS_OP_glColor3sv                         61
  311. #define GLS_OP_glColor3ubv                        62
  312. #define GLS_OP_glColor3uiv                        63
  313. #define GLS_OP_glColor3usv                        64
  314. #define GLS_OP_glColor4bv                         65
  315. #define GLS_OP_glColor4dv                         66
  316. #define GLS_OP_glColor4fv                         67
  317. #define GLS_OP_glColor4iv                         68
  318. #define GLS_OP_glColor4sv                         69
  319. #define GLS_OP_glColor4ubv                        70
  320. #define GLS_OP_glColor4uiv                        71
  321. #define GLS_OP_glColor4usv                        72
  322. #define GLS_OP_glColorMask                        188
  323. #define GLS_OP_glColorMaterial                    129
  324. #define GLS_OP_glColorPointer                     281
  325. #define GLS_OP_glColorPointerEXT                  65494
  326. #define GLS_OP_glColorTableParameterfvSGI         65477
  327. #define GLS_OP_glColorTableParameterivSGI         65478
  328. #define GLS_OP_glColorTableSGI                    65476
  329. #define GLS_OP_glConvolutionFilter1DEXT           65528
  330. #define GLS_OP_glConvolutionFilter2DEXT           65529
  331. #define GLS_OP_glConvolutionParameterfEXT         65530
  332. #define GLS_OP_glConvolutionParameterfvEXT        65531
  333. #define GLS_OP_glConvolutionParameteriEXT         65532
  334. #define GLS_OP_glConvolutionParameterivEXT        65533
  335. #define GLS_OP_glCopyColorTableSGI                65479
  336. #define GLS_OP_glCopyConvolutionFilter1DEXT       65534
  337. #define GLS_OP_glCopyConvolutionFilter2DEXT       65535
  338. #define GLS_OP_glCopyPixels                       229
  339. #define GLS_OP_glCopyTexImage1D                   294
  340. #define GLS_OP_glCopyTexImage1DEXT                65483
  341. #define GLS_OP_glCopyTexImage2D                   295
  342. #define GLS_OP_glCopyTexImage2DEXT                65484
  343. #define GLS_OP_glCopyTexSubImage1D                296
  344. #define GLS_OP_glCopyTexSubImage1DEXT             65485
  345. #define GLS_OP_glCopyTexSubImage2D                297
  346. #define GLS_OP_glCopyTexSubImage2DEXT             65486
  347. #define GLS_OP_glCopyTexSubImage3DEXT             65487
  348. #define GLS_OP_glCullFace                         130
  349. #define GLS_OP_glDeformSGIX                       65415
  350. #define GLS_OP_glDeformationMap3dSGIX             65413
  351. #define GLS_OP_glDeformationMap3fSGIX             65414
  352. #define GLS_OP_glDeleteLists                      52
  353. #define GLS_OP_glDeleteTextures                   302
  354. #define GLS_OP_glDeleteTexturesEXT                65472
  355. #define GLS_OP_glDepthFunc                        219
  356. #define GLS_OP_glDepthMask                        189
  357. #define GLS_OP_glDepthRange                       262
  358. #define GLS_OP_glDetailTexFuncSGIS                65489
  359. #define GLS_OP_glDisable                          192
  360. #define GLS_OP_glDisableClientState               282
  361. #define GLS_OP_glDrawArrays                       283
  362. #define GLS_OP_glDrawArraysEXT                    65495
  363. #define GLS_OP_glDrawBuffer                       180
  364. #define GLS_OP_glDrawElements                     284
  365. #define GLS_OP_glDrawPixels                       231
  366. #define GLS_OP_glEdgeFlagPointer                  285
  367. #define GLS_OP_glEdgeFlagPointerEXT               65496
  368. #define GLS_OP_glEdgeFlagv                        73
  369. #define GLS_OP_glEnable                           193
  370. #define GLS_OP_glEnableClientState                286
  371. #define GLS_OP_glEnd                              74
  372. #define GLS_OP_glEndList                          49
  373. #define GLS_OP_glEvalCoord1dv                     206
  374. #define GLS_OP_glEvalCoord1fv                     207
  375. #define GLS_OP_glEvalCoord2dv                     208
  376. #define GLS_OP_glEvalCoord2fv                     209
  377. #define GLS_OP_glEvalMesh1                        210
  378. #define GLS_OP_glEvalMesh2                        212
  379. #define GLS_OP_glEvalPoint1                       211
  380. #define GLS_OP_glEvalPoint2                       213
  381. #define GLS_OP_glFeedbackBuffer                   172
  382. #define GLS_OP_glFinish                           194
  383. #define GLS_OP_glFlush                            195
  384. #define GLS_OP_glFlushRasterSGIX                  65409
  385. #define GLS_OP_glFogFuncSGIS                      65467
  386. #define GLS_OP_glFogf                             131
  387. #define GLS_OP_glFogfv                            132
  388. #define GLS_OP_glFogi                             133
  389. #define GLS_OP_glFogiv                            134
  390. #define GLS_OP_glFrameZoomSGIX                    65411
  391. #define GLS_OP_glFrontFace                        135
  392. #define GLS_OP_glFrustum                          263
  393. #define GLS_OP_glGenLists                         53
  394. #define GLS_OP_glGenTextures                      303
  395. #define GLS_OP_glGenTexturesEXT                   65473
  396. #define GLS_OP_glGetBooleanv                      232
  397. #define GLS_OP_glGetClipPlane                     233
  398. #define GLS_OP_glGetColorTableParameterfvSGI      65481
  399. #define GLS_OP_glGetColorTableParameterivSGI      65482
  400. #define GLS_OP_glGetColorTableSGI                 65480
  401. #define GLS_OP_glGetConvolutionFilterEXT          65504
  402. #define GLS_OP_glGetConvolutionParameterfvEXT     65505
  403. #define GLS_OP_glGetConvolutionParameterivEXT     65506
  404. #define GLS_OP_glGetDetailTexFuncSGIS             65490
  405. #define GLS_OP_glGetDoublev                       234
  406. #define GLS_OP_glGetError                         235
  407. #define GLS_OP_glGetFloatv                        236
  408. #define GLS_OP_glGetHistogramEXT                  65509
  409. #define GLS_OP_glGetHistogramParameterfvEXT       65510
  410. #define GLS_OP_glGetHistogramParameterivEXT       65511
  411. #define GLS_OP_glGetInstrumentsSGIX               65468
  412. #define GLS_OP_glGetIntegerv                      237
  413. #define GLS_OP_glGetLightfv                       238
  414. #define GLS_OP_glGetLightiv                       239
  415. #define GLS_OP_glGetMapdv                         240
  416. #define GLS_OP_glGetMapfv                         241
  417. #define GLS_OP_glGetMapiv                         242
  418. #define GLS_OP_glGetMaterialfv                    243
  419. #define GLS_OP_glGetMaterialiv                    244
  420. #define GLS_OP_glGetMinmaxEXT                     65512
  421. #define GLS_OP_glGetMinmaxParameterfvEXT          65513
  422. #define GLS_OP_glGetMinmaxParameterivEXT          65514
  423. #define GLS_OP_glGetPixelMapfv                    245
  424. #define GLS_OP_glGetPixelMapuiv                   246
  425. #define GLS_OP_glGetPixelMapusv                   247
  426. #define GLS_OP_glGetPointerv                      287
  427. #define GLS_OP_glGetPointervEXT                   65497
  428. #define GLS_OP_glGetPolygonStipple                248
  429. #define GLS_OP_glGetSeparableFilterEXT            65507
  430. #define GLS_OP_glGetSharpenTexFuncSGIS            65492
  431. #define GLS_OP_glGetString                        249
  432. #define GLS_OP_glGetTexEnvfv                      250
  433. #define GLS_OP_glGetTexEnviv                      251
  434. #define GLS_OP_glGetTexFilterFuncSGIS             65463
  435. #define GLS_OP_glGetTexGendv                      252
  436. #define GLS_OP_glGetTexGenfv                      253
  437. #define GLS_OP_glGetTexGeniv                      254
  438. #define GLS_OP_glGetTexImage                      255
  439. #define GLS_OP_glGetTexLevelParameterfv           258
  440. #define GLS_OP_glGetTexLevelParameteriv           259
  441. #define GLS_OP_glGetTexParameterfv                256
  442. #define GLS_OP_glGetTexParameteriv                257
  443. #define GLS_OP_glHint                             136
  444. #define GLS_OP_glHistogramEXT                     65515
  445. #define GLS_OP_glIglooInterfaceSGIX               65412
  446. #define GLS_OP_glIndexMask                        190
  447. #define GLS_OP_glIndexPointer                     288
  448. #define GLS_OP_glIndexPointerEXT                  65498
  449. #define GLS_OP_glIndexdv                          75
  450. #define GLS_OP_glIndexfv                          76
  451. #define GLS_OP_glIndexiv                          77
  452. #define GLS_OP_glIndexsv                          78
  453. #define GLS_OP_glIndexubv                         306
  454. #define GLS_OP_glInitNames                        175
  455. #define GLS_OP_glInterleavedArrays                289
  456. #define GLS_OP_glIsEnabled                        260
  457. #define GLS_OP_glIsList                           261
  458. #define GLS_OP_glIsTexture                        304
  459. #define GLS_OP_glIsTextureEXT                     65474
  460. #define GLS_OP_glLightModelf                      141
  461. #define GLS_OP_glLightModelfv                     142
  462. #define GLS_OP_glLightModeli                      143
  463. #define GLS_OP_glLightModeliv                     144
  464. #define GLS_OP_glLightf                           137
  465. #define GLS_OP_glLightfv                          138
  466. #define GLS_OP_glLighti                           139
  467. #define GLS_OP_glLightiv                          140
  468. #define GLS_OP_glLineStipple                      145
  469. #define GLS_OP_glLineWidth                        146
  470. #define GLS_OP_glListBase                         54
  471. #define GLS_OP_glLoadIdentity                     264
  472. #define GLS_OP_glLoadIdentityDeformationMapSGIX   65416
  473. #define GLS_OP_glLoadMatrixd                      266
  474. #define GLS_OP_glLoadMatrixf                      265
  475. #define GLS_OP_glLoadName                         176
  476. #define GLS_OP_glLogicOp                          216
  477. #define GLS_OP_glMap1d                            198
  478. #define GLS_OP_glMap1f                            199
  479. #define GLS_OP_glMap2d                            200
  480. #define GLS_OP_glMap2f                            201
  481. #define GLS_OP_glMapGrid1d                        202
  482. #define GLS_OP_glMapGrid1f                        203
  483. #define GLS_OP_glMapGrid2d                        204
  484. #define GLS_OP_glMapGrid2f                        205
  485. #define GLS_OP_glMaterialf                        147
  486. #define GLS_OP_glMaterialfv                       148
  487. #define GLS_OP_glMateriali                        149
  488. #define GLS_OP_glMaterialiv                       150
  489. #define GLS_OP_glMatrixMode                       267
  490. #define GLS_OP_glMinmaxEXT                        65516
  491. #define GLS_OP_glMultMatrixd                      269
  492. #define GLS_OP_glMultMatrixf                      268
  493. #define GLS_OP_glNewList                          48
  494. #define GLS_OP_glNormal3bv                        79
  495. #define GLS_OP_glNormal3dv                        80
  496. #define GLS_OP_glNormal3fv                        81
  497. #define GLS_OP_glNormal3iv                        82
  498. #define GLS_OP_glNormal3sv                        83
  499. #define GLS_OP_glNormalPointer                    290
  500. #define GLS_OP_glNormalPointerEXT                 65499
  501. #define GLS_OP_glOrtho                            270
  502. #define GLS_OP_glPassThrough                      177
  503. #define GLS_OP_glPipelineInstrumentsBufferSGIX    65469
  504. #define GLS_OP_glPixelMapfv                       225
  505. #define GLS_OP_glPixelMapuiv                      226
  506. #define GLS_OP_glPixelMapusv                      227
  507. #define GLS_OP_glPixelStoref                      223
  508. #define GLS_OP_glPixelStorei                      224
  509. #define GLS_OP_glPixelTexGenSGIX                  65458
  510. #define GLS_OP_glPixelTransferf                   221
  511. #define GLS_OP_glPixelTransferi                   222
  512. #define GLS_OP_glPixelZoom                        220
  513. #define GLS_OP_glPointParameterfSGIS              65465
  514. #define GLS_OP_glPointParameterfvSGIS             65466
  515. #define GLS_OP_glPointSize                        151
  516. #define GLS_OP_glPollInstrumentsSGIX              65470
  517. #define GLS_OP_glPolygonMode                      152
  518. #define GLS_OP_glPolygonOffset                    293
  519. #define GLS_OP_glPolygonOffsetEXT                 65522
  520. #define GLS_OP_glPolygonStipple                   153
  521. #define GLS_OP_glPopAttrib                        196
  522. #define GLS_OP_glPopClientAttrib                  307
  523. #define GLS_OP_glPopMatrix                        271
  524. #define GLS_OP_glPopName                          178
  525. #define GLS_OP_glPrioritizeTextures               305
  526. #define GLS_OP_glPrioritizeTexturesEXT            65475
  527. #define GLS_OP_glPushAttrib                       197
  528. #define GLS_OP_glPushClientAttrib                 308
  529. #define GLS_OP_glPushMatrix                       272
  530. #define GLS_OP_glPushName                         179
  531. #define GLS_OP_glRasterPos2dv                     84
  532. #define GLS_OP_glRasterPos2fv                     85
  533. #define GLS_OP_glRasterPos2iv                     86
  534. #define GLS_OP_glRasterPos2sv                     87
  535. #define GLS_OP_glRasterPos3dv                     88
  536. #define GLS_OP_glRasterPos3fv                     89
  537. #define GLS_OP_glRasterPos3iv                     90
  538. #define GLS_OP_glRasterPos3sv                     91
  539. #define GLS_OP_glRasterPos4dv                     92
  540. #define GLS_OP_glRasterPos4fv                     93
  541. #define GLS_OP_glRasterPos4iv                     94
  542. #define GLS_OP_glRasterPos4sv                     95
  543. #define GLS_OP_glReadBuffer                       228
  544. #define GLS_OP_glReadPixels                       230
  545. #define GLS_OP_glRectdv                           96
  546. #define GLS_OP_glRectfv                           97
  547. #define GLS_OP_glRectiv                           98
  548. #define GLS_OP_glRectsv                           99
  549. #define GLS_OP_glReferencePlaneSGIX               65410
  550. #define GLS_OP_glRenderMode                       174
  551. #define GLS_OP_glResetHistogramEXT                65517
  552. #define GLS_OP_glResetMinmaxEXT                   65518
  553. #define GLS_OP_glRotated                          273
  554. #define GLS_OP_glRotatef                          274
  555. #define GLS_OP_glSampleMaskSGIS                   65525
  556. #define GLS_OP_glSamplePatternSGIS                65526
  557. #define GLS_OP_glScaled                           275
  558. #define GLS_OP_glScalef                           276
  559. #define GLS_OP_glScissor                          154
  560. #define GLS_OP_glSelectBuffer                     173
  561. #define GLS_OP_glSeparableFilter2DEXT             65508
  562. #define GLS_OP_glShadeModel                       155
  563. #define GLS_OP_glSharpenTexFuncSGIS               65491
  564. #define GLS_OP_glSpriteParameterfSGIX             65459
  565. #define GLS_OP_glSpriteParameterfvSGIX            65460
  566. #define GLS_OP_glSpriteParameteriSGIX             65461
  567. #define GLS_OP_glSpriteParameterivSGIX            65462
  568. #define GLS_OP_glStartInstrumentsSGIX             65471
  569. #define GLS_OP_glStencilFunc                      217
  570. #define GLS_OP_glStencilMask                      187
  571. #define GLS_OP_glStencilOp                        218
  572. #define GLS_OP_glStopInstrumentsSGIX              65408
  573. #define GLS_OP_glTagSampleBufferSGIX              65527
  574. #define GLS_OP_glTexCoord1dv                      100
  575. #define GLS_OP_glTexCoord1fv                      101
  576. #define GLS_OP_glTexCoord1iv                      102
  577. #define GLS_OP_glTexCoord1sv                      103
  578. #define GLS_OP_glTexCoord2dv                      104
  579. #define GLS_OP_glTexCoord2fv                      105
  580. #define GLS_OP_glTexCoord2iv                      106
  581. #define GLS_OP_glTexCoord2sv                      107
  582. #define GLS_OP_glTexCoord3dv                      108
  583. #define GLS_OP_glTexCoord3fv                      109
  584. #define GLS_OP_glTexCoord3iv                      110
  585. #define GLS_OP_glTexCoord3sv                      111
  586. #define GLS_OP_glTexCoord4dv                      112
  587. #define GLS_OP_glTexCoord4fv                      113
  588. #define GLS_OP_glTexCoord4iv                      114
  589. #define GLS_OP_glTexCoord4sv                      115
  590. #define GLS_OP_glTexCoordPointer                  291
  591. #define GLS_OP_glTexCoordPointerEXT               65500
  592. #define GLS_OP_glTexEnvf                          162
  593. #define GLS_OP_glTexEnvfv                         163
  594. #define GLS_OP_glTexEnvi                          164
  595. #define GLS_OP_glTexEnviv                         165
  596. #define GLS_OP_glTexFilterFuncSGIS                65464
  597. #define GLS_OP_glTexGend                          166
  598. #define GLS_OP_glTexGendv                         167
  599. #define GLS_OP_glTexGenf                          168
  600. #define GLS_OP_glTexGenfv                         169
  601. #define GLS_OP_glTexGeni                          170
  602. #define GLS_OP_glTexGeniv                         171
  603. #define GLS_OP_glTexImage1D                       160
  604. #define GLS_OP_glTexImage2D                       161
  605. #define GLS_OP_glTexImage3DEXT                    65519
  606. #define GLS_OP_glTexImage4DSGIS                   65456
  607. #define GLS_OP_glTexParameterf                    156
  608. #define GLS_OP_glTexParameterfv                   157
  609. #define GLS_OP_glTexParameteri                    158
  610. #define GLS_OP_glTexParameteriv                   159
  611. #define GLS_OP_glTexSubImage1D                    298
  612. #define GLS_OP_glTexSubImage1DEXT                 65523
  613. #define GLS_OP_glTexSubImage2D                    299
  614. #define GLS_OP_glTexSubImage2DEXT                 65524
  615. #define GLS_OP_glTexSubImage3DEXT                 65488
  616. #define GLS_OP_glTexSubImage4DSGIS                65457
  617. #define GLS_OP_glTranslated                       277
  618. #define GLS_OP_glTranslatef                       278
  619. #define GLS_OP_glVertex2dv                        116
  620. #define GLS_OP_glVertex2fv                        117
  621. #define GLS_OP_glVertex2iv                        118
  622. #define GLS_OP_glVertex2sv                        119
  623. #define GLS_OP_glVertex3dv                        120
  624. #define GLS_OP_glVertex3fv                        121
  625. #define GLS_OP_glVertex3iv                        122
  626. #define GLS_OP_glVertex3sv                        123
  627. #define GLS_OP_glVertex4dv                        124
  628. #define GLS_OP_glVertex4fv                        125
  629. #define GLS_OP_glVertex4iv                        126
  630. #define GLS_OP_glVertex4sv                        127
  631. #define GLS_OP_glVertexPointer                    292
  632. #define GLS_OP_glVertexPointerEXT                 65501
  633. #define GLS_OP_glViewport                         279
  634.  
  635. /*************************************************************/
  636.  
  637. /* GLS global commands */
  638. extern void glsContext (GLint inContext);
  639. extern void glsDeleteContext (GLint inContext);
  640. extern GLint glsGenContext (void);
  641. extern GLint* glsGetAllContexts (void);
  642. extern GLSenum glsGetBinaryType (GLint inSwapCount);
  643. extern GLint glsGetCommandi (GLSopcode inOpcode, GLSenum inAttrib);
  644. extern GLint glsGetCurrentContext (void);
  645. extern GLSenum glsGetError (void);
  646. extern GLSfunc glsGetNullCommandFunc (GLSopcode inOpcode);
  647. extern GLint glsGetOpcodeCount (GLSenum inAPI);
  648. extern const GLSopcode* glsGetOpcodes (GLSenum inAPI);
  649. extern GLboolean glsIsClientState (GLSenum inAPI, GLSenum inAttrib);
  650. extern GLboolean glsIsContext (GLint inContext);
  651.  
  652. /* GLS immediate commands */
  653. extern void glsAbortCall (GLSenum inMode);
  654. extern void glsAppendReadPrefix (const GLSchar *inPrefix);
  655. extern GLboolean glsBeginCapture (const GLSchar *inStreamName, GLSenum inCaptureStreamType, GLint inWriteFlags);
  656. extern void glsCallArray (GLSenum inExternStreamType, size_t inCount, const GLvoid *inArray);
  657. extern void glsCaptureEntryFunc (GLScaptureEntryFunc inFunc);
  658. extern void glsCaptureExitFunc (GLScaptureExitFunc inFunc);
  659. extern void glsCaptureFlags (GLSopcode inOpcode, GLint inFlags);
  660. extern void glsChannel (GLSenum inTarget, FILE *inChannel);
  661. extern void glsCommandFunc (GLSopcode inOpcode, GLSfunc inFunc);
  662. extern GLSenum glsCopyStream (const GLSchar *inSource, const GLSchar *inDest, GLSenum inDestType, GLint inWriteFlags);
  663. extern void glsDataPointer (GLvoid *inPointer);
  664. extern void glsDeleteStream (const GLSchar *inName);
  665. extern void glsDisable (GLSenum inAttrib);
  666. extern void glsEnable (GLSenum inAttrib);
  667. extern void glsEndCapture (void);
  668. extern void glsFlush (void);
  669. extern GLint glsGetCaptureFlags (GLSopcode inOpcode);
  670. extern GLSfunc glsGetCommandFunc (GLSopcode inOpcode);
  671. extern const GLSchar* glsGetCommandName (GLSopcode inOpcode);
  672. extern GLSopcode glsGetCommandOpcode (const GLSchar *inName);
  673. extern const GLSchar* glsGetEnumName (GLSenum inAPI, GLSenum inValue);
  674. extern GLint glsGetEnumValue (GLSenum inAPI, const GLSchar *inName);
  675. extern GLSfunc glsGetFunc (GLSenum inAttrib);
  676. extern const GLSchar* glsGetHeaderc (GLSenum inAttrib);
  677. extern GLfloat glsGetHeaderf (GLSenum inAttrib);
  678. extern GLfloat* glsGetHeaderfv (GLSenum inAttrib, GLfloat *outVec);
  679. extern GLint glsGetHeaderi (GLSenum inAttrib);
  680. extern GLint* glsGetHeaderiv (GLSenum inAttrib, GLint *outVec);
  681. extern const GLSchar* glsGetListc (GLSenum inAttrib, GLint inIndex);
  682. extern GLint glsGetListi (GLSenum inAttrib, GLint inIndex);
  683. extern GLSlong glsGetListl (GLSenum inAttrib, GLint inIndex);
  684. extern GLvoid* glsGetPointer (GLSenum inAttrib);
  685. extern size_t glsGetStreamSize (const GLSchar *inName);
  686. extern const GLSchar* glsGetStreamc (GLSenum inAttrib, const GLSchar *inName);
  687. extern GLint glsGetStreami (GLSenum inAttrib, const GLSchar *inName);
  688. extern const GLSchar* glsGetc (GLSenum inAttrib);
  689. extern GLint glsGeti (GLSenum inAttrib);
  690. extern GLint* glsGetiv (GLSenum inAttrib, GLint *outVec);
  691. extern GLboolean glsIsContextStream (const GLSchar *inName);
  692. extern GLboolean glsIsEnabled (GLSenum inAttrib);
  693. extern GLboolean glsIsExtensionSupported (const GLSchar *inExtension);
  694. extern GLboolean glsIsVersionSupported (GLSenum inAPI, GLint inVersionMajor, GLint inVersionMinor);
  695. extern void glsPrependReadPrefix (const GLSchar *inPrefix);
  696. extern void glsReadFunc (GLSreadFunc inFunc);
  697. extern void glsRemoveReadPrefix (GLint inIndex);
  698. extern void glsResetAlignment (void);
  699. extern void glsStringType (GLSenum inStringType);
  700. extern void glsWriteFunc (GLSwriteFunc inFunc);
  701. extern void glsWritePrefix (const GLSchar *inPrefix);
  702.  
  703. /* GLS encodable commands */
  704. extern void glsBeginGLS (GLint inVersionMajor, GLint inVersionMinor);
  705. extern void glsBlock (GLSenum inBlockType);
  706. extern GLSenum glsCallStream (const GLSchar *inName);
  707. extern void glsDrawVertexArray (GLenum inMode, GLenum inFormat, GLint inCount, const GLvoid *inArray);
  708. extern void glsEndGLS (void);
  709. extern void glsError (GLSopcode inOpcode, GLSenum inError);
  710. extern void glsHeaderc (GLSenum inAttrib, const GLSchar *inString);
  711. extern void glsHeaderf (GLSenum inAttrib, GLfloat inVal);
  712. extern void glsHeaderfv (GLSenum inAttrib, const GLfloat *inVec);
  713. extern void glsHeaderi (GLSenum inAttrib, GLint inVal);
  714. extern void glsHeaderiv (GLSenum inAttrib, const GLint *inVec);
  715. extern void glsRequireExtension (const GLSchar *inExtension);
  716. extern void glsRequireVersion (GLSenum inAPI, GLint inVersionMajor, GLint inVersionMinor);
  717. extern void glsUnsupportedCommand (const GLSchar *inCommand);
  718.  
  719. /* GLS encodable-nop commands */
  720. extern void glsBeginObj (const GLSchar *inTag);
  721. extern void glsComment (const GLSchar *inComment);
  722. extern void glsEndObj (void);
  723. extern void glsNumbv (const GLSchar *inTag, GLint inCount, const GLbyte *inVec);
  724. extern void glsNumd (const GLSchar *inTag, GLdouble inVal);
  725. extern void glsNumdv (const GLSchar *inTag, GLint inCount, const GLdouble *inVec);
  726. extern void glsNumf (const GLSchar *inTag, GLfloat inVal);
  727. extern void glsNumfv (const GLSchar *inTag, GLint inCount, const GLfloat *inVec);
  728. extern void glsNumi (const GLSchar *inTag, GLint inVal);
  729. extern void glsNumiv (const GLSchar *inTag, GLint inCount, const GLint *inVec);
  730. extern void glsNuml (const GLSchar *inTag, GLSlong inVal);
  731. extern void glsNumlv (const GLSchar *inTag, GLint inCount, const GLSlong *inVec);
  732. extern void glsNumsv (const GLSchar *inTag, GLint inCount, const GLshort *inVec);
  733. extern void glsPad (void);
  734. extern void glsString (const GLSchar *inTag, const GLSchar *inString);
  735. extern void glsSwapBuffers (void);
  736.  
  737. #if defined(__cplusplus)
  738.     }
  739. #endif /* defined(__cplusplus) */
  740.  
  741. #endif /* defined(__gls_h_) */
  742.